package com.meisupic.copyright.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * creation wuxun
 * @version V1.0
 * @Description: TODO
 * @date 2018/1/21 15:25
 */
@Configuration
public class MvcConfiguration extends WebMvcConfigurerAdapter {

  /**
   * 视图控制器配置
   */
  @Override
  public void addViewControllers(ViewControllerRegistry registry) {
    super.addViewControllers(registry);
    registry.addViewController("/admin/dic").setViewName("admin/sysdic/list");
    registry.addViewController("/admin/dic/add").setViewName("admin/sysdic/add");
    registry.addViewController("/admin/login").setViewName("admin/login");
    registry.addViewController("/index").setViewName("admin/sysdic/list");
    registry.addViewController("/admin/realnameauth").setViewName("admin/realnameauth/list");
    registry.addViewController("/admin/realnameauth/detail").setViewName("admin/realnameauth/detail");
    registry.addViewController("/admin/works").setViewName("admin/works/list");
    registry.addViewController("/admin/partner/works").setViewName("admin/works/partnerList");
    registry.addViewController("/admin/works/detail").setViewName("admin/works/detail");
    registry.addViewController("/admin/vip").setViewName("admin/realnameauth/viplist");


    registry.addViewController("/").setViewName("front/index");
    registry.addViewController("/index").setViewName("front/index");
    registry.addViewController("/service").setViewName("front/service");
    registry.addViewController("/trade").setViewName("front/trade");
    registry.addViewController("/vip-plan").setViewName("front/vip-plan-2.0");
    registry.addViewController("/vip-order").setViewName("front/vip-order-2.0");
    registry.addViewController("/weixinpay").setViewName("front/weixinpay");
    registry.addViewController("/login").setViewName("front/login");
    registry.addViewController("/findpwd").setViewName("front/findpwd");
    registry.addViewController("/platform/Introduction").setViewName("front/platform/Introduction");
    registry.addViewController("/platform/commonProblems").setViewName("front/platform/commonProblems");
    registry.addViewController("/platform/documentDownload").setViewName("front/platform/documentDownload");
    registry.addViewController("/platform/ImageSalesAgreement").setViewName("front/platform/ImageSalesAgreement");
    registry.addViewController("/platform/payAgreement").setViewName("front/platform/payAgreement");
    registry.addViewController("/platform/serviceAgreement").setViewName("front/platform/serviceAgreement");
    registry.addViewController("/platform/business-cooperation").setViewName("front/platform/business-cooperation");

    registry.addViewController("/copyright/realname/authentication").setViewName("front/realnameauth/authentication");
    registry.addViewController("/copyright/realname/authentication/success").setViewName("front/realnameauth/authsuccess");
    registry.addViewController("/copyright/realname/authentication/fail").setViewName("front/realnameauth/authfail");
    registry.addViewController("/copyright/register/uploadwork").setViewName("front/copyright/uploadwork");
    registry.addViewController("/copyright/register/edit").setViewName("front/copyright/worksedit");
    registry.addViewController("/copyright/register/huaban").setViewName("front/copyright/huabanWorksReg");
    registry.addViewController("/copyright/register/confirm").setViewName("front/copyright/confirmInfo");
    registry.addViewController("/copyright/register/confirmed").setViewName("front/copyright/confirmed");
    registry.addViewController("/copyright/manage/works").setViewName("front/manage/works");
    registry.addViewController("/copyright/manage/sales").setViewName("front/manage/sales");
    registry.addViewController("/copyright/manage/detail").setViewName("front/manage/detail");
    registry.addViewController("/copyright/manage/worksdna").setViewName("front/manage/DNA");
    registry.addViewController("/copyright/manage/monitors").setViewName("front/manage/monitors");
    registry.addViewController("/copyright/manage/account").setViewName("front/manage/accountInfo");
    registry.addViewController("/copyright/manage/message").setViewName("front/manage/message");
    registry.addViewController("/copyright/manage/my-vip").setViewName("front/manage/vip-2.0");
    registry.addViewController("/copyright/manage/personal-page").setViewName("front/manage/personal-page");

    registry.addViewController("/help/home").setViewName("front/helpCenter/category");
    registry.addViewController("/help/content").setViewName("front/helpCenter/content");


  }

}
